package com.ccf.business.etl.model.dto;

import com.ccf.business.etl.model.Node;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 描述：
 * 节点解析对象
 * @author xianggj
 * @Date 2021/11/30 9:29
 **/
@Data
@NoArgsConstructor
public class NodeDTO {

    private String id;

    private String name;

    private String code;

    private String params;

    private String icon;

    private Integer enterLine;

    private Integer outputLine;

    public NodeDTO(Node node) {
        this.id = node.getId();
        this.name = node.getName();
        this.code = node.getRule();
        this.params = node.getParams();
        this.icon = node.getIcon();
        this.enterLine = node.getEnterLine();
        this.outputLine = node.getOutputLine();
    }
}
